package com.woniu.atms.vo.aft.Schedule;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.time.LocalTime;
import java.util.Date;

/**
 * 添加班次数据视图
 */
@Getter
@Setter
public class AftScheduleAddVO {
    @NotNull(message = "班次id不能为null")
    @Min(value = 1,message = "id需为正整数")
    private Integer routeId;
    @NotNull(message = "班次时间不能为null")
    private LocalTime time;
    @NotNull(message = "车辆id不能为null")
    @Min(value = 1,message = "车辆id需为正整数")
    private Integer carId;
    @NotNull(message = "班次价格不能为null")
    private BigDecimal price;
    @NotNull(message = "状态不能为null")
    @NotBlank(message = "状态不能为空字符串")
    @Size(max = 1,min = 1,message = "状态必须为1字符")
    private String status;
    @NotNull(message = "删除标记不能为null")
    @NotBlank(message = "删除标记不能为空字符串")
    @Size(max = 1,min = 1,message = "删除标记必须为1字符")
    private String isExit;
    @NotNull(message = "班次编号不能为null")
    @NotBlank(message = "班次编号不能为空字符串")
    @Size(max = 20,min = 1,message = "班次编号必须在1-20字符之间")
    private String scheduleNo;
}
